package com.nave.princesslife.main;

import android.content.Context;
import android.graphics.BitmapFactory;
import android.view.MotionEvent;

import com.nave.princesslife.R;
import com.nave.princesslife.places.SceneManager;

public class LeftArrow extends GameObject {

	private static LeftArrow instance;

	private LeftArrow() {
	};

	public static LeftArrow getInstance() {

		if (instance == null)
			instance = new LeftArrow();

		return instance;
	}

	public void setup(Context context, int w, int h) {

		// Coletar a imagem na pasta res/drawable
		bitmap = BitmapFactory.decodeResource(context.getResources(),
				R.drawable.mainscreen_leftarrow);

		super.setup(w, h, 150f, 600f);
	}

	public boolean touchEvent(MotionEvent me, int x, int y) {

		boolean touch = super.touchEvent(me, x, y);

		if (touch)
			SceneManager.changeScene(SceneManager.LEFT_STRING);

		return true;
	}
}
